package server;

import java.util.HashMap;
import java.util.Map;

public class Context {
    // context标签中的path，对应url中的访问路径，比如localhost:8080/demo1/lagou中的/demo1
    private String path;

    // context标签对应项目中的所有servlet，key为url，value为servlet对象
    private Map<String, HttpServlet> servletMapping = new HashMap<>();

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Map<String, HttpServlet> getServletMapping() {
        return servletMapping;
    }

    public void setServletMapping(Map<String, HttpServlet> servletMapping) {
        this.servletMapping = servletMapping;
    }
}
